<article>
<section class="box clearfix productTeaserBox">
    <div id="breadcrumb" class="breadcrumb">
        <ul>
            <li><a href="#">Trang chủ</a></li>
            <li><span>Giỏ hàng</span></li>
        </ul>
    </div>
</section>
<section class="box clearfix productTeaserBox">
    <div id="gallery1" style="display: none;">
        <a href="#" class="show"><img rel=" " title="" alt="slider1"
                                      src="images/nuoc_1.jpg"></a> <a href="#" class=""><img rel=" "
                                                                                             title="" alt="slider1" src="images/23.png"></a> <a href="#" class=""><img
                rel=" " title="" alt="slider1" src="images/nuoc_1.jpg"></a> <a
            href="#" class=""><img rel=" " title="" alt="slider1"
                                   src="images/23.png"></a>
    </div>
</section>
<section class="box clearfix productTeaserBox">
    <div class="poruduct_shop">
        <h1 class="title-shopcart">Thông tin mua hàng</h1>
        <div class="product_listshop">
            <table class="shopcart-table">
                <tr class="title">
                    <td width="165">Hình ảnh</td>
                    <td width="165">Tên sản phẩm</td>
                    <td width="165">Giá</td>
                    <td width="165">Tổng tiền</td>
                </tr>

                <tr>
                    <td><img width="200px" height="200px" src="<?php echo $detailproduct->img1; ?>" alt="" /></td>
                    <td><p><?php echo $detailproduct->title; ?></p></td>
                    <td><p><?php echo number_format($detailproduct->price);?> VNĐ</p></td>
                    <td><p style="font-size: 14px; color: #F5393C; font-weight: bold;"><?php echo number_format($detailproduct->price);?> VNĐ</p></td>
                </tr>
            </table>

            <div class="sum">Tổng cộng :<b style="color: #FB2326;"> <?php echo number_format($detailproduct->price);?> VNĐ</b></div>

            <script>
                function validateForm()
                {
                    var x=document.forms["mhfrom"]["fullname"].value;
                    if (x==null || x=="")
                    {
                        alert("Chưa điền tên ");
                        return false;
                    }

                    var x=document.forms["mhfrom"]["phone"].value;
                    if (x==null || x=="")
                    {
                        alert("Bạn chưa điền số điện thoại ");
                        return false;
                    }
                }
            </script>
        </div>

        <form action="<?php echo base_url().'mua-hang'?>" method="POST" name="mhfrom" onsubmit="return validateForm()">
            <div class="product_shop_user">
                <h2 class="title">Thông tin khách hàng</h2>
                <div class="box_form">
                    <div id="form0" class="formswitch">
                        <input type="hidden" name="productid" value="<?php echo $detailproduct->p_id; ?>">
                        <p>
                            <label class="lienhe_label">Tên Khách hàng<b class="text_red">*</b></label>
                            <input type="text" value="" name="fullname" id="fullname"
                                   onfocus="hidenmessage();" class="valid">
                        </p>
                        <p>
                            <label class="lienhe_label">Số điện thoại<b class="text_red">*</b></label>
                            <input type="text" value="" onfocus="hidenmessage();" id="phone" name="phone">
                        </p>
                        <p>
                            <label class="lienhe_label">Địa chỉ </label> <input type="text"
                                                                                value="" onfocus="hidenmessage();" name="address" id="address">
                        </p>
                    </div>
                </div>

                <div class="datmua">
                    <a class="shopping-cart1" href="<?php echo base_url(); ?>">Quay lại trang chủ</a>
                    <input type="submit" value="Mua hàng" class="id" id="muahang">

                </div>

                <div style="clear: both"></div>
            </div>
        </form>
    </div>
</section>
</article>